<?php
include_once "config.php";
include_once "nicedit.html";
include_once "connect.php";
include_once "config.php";
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<title>AP3-SP-les phoques du desert</title>
<link rel="stylesheet" type="text/css" href="style.css" />
<script type="text/javascript" src="verification.js"></script>	
</head>
<body onLoad="display_c()">

<div id="all">
		<div id="header">	
<a href="index.php"> Retour vers l'Index </a>		
			<div id="image">
			</div>
			
			<div id="barre_choix">
			</div>
			
			<div id="log">
			</div>
			
		</div>
		
		<div id="content">
				<?php echo "<form name='ajout' action='ajoutpost.php?id=".$_GET["id"]."&id_user=".$_GET["id_user"] ."' method='post' onSubmit=return validForm();>"; ?>
	<p>
	<label>Nouveau Post</label><br/>
	<p>
	<label>Titre</label>
		<input name="titre"/>
	</p>
	<p>	
		<textarea name="contenu" cols="50" rows="10"></textarea>
	</p>
	
	<p>
	<label>Pseudo</label>
		<?php echo $_GET["id_user"]; ?>
	</p>
	
	<p>
	<label>Rubrique</label>
		<?php	
		$libelle=mysql_query("select libelle_rubrique from AP3_SP_rubrique where id_rubrique=".$_GET["id"]);
			while($row=mysql_fetch_assoc($libelle))	{
			echo $row["libelle_rubrique"];
			}
			
		?>
	</p>
	
	<p>
		<input type="submit" name="ajoutpost" value="Ajouterpost"/><br/>
	</p>
	</form>
	</div>
		<div id="footer">
			<div id="ct">
			</div>
			
			<div id="droit">
			Made by Les Phoques Du Désert
			</div>
		</div>
</div>